<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .m{
      background:url('pic/m_bg.png');
      background-repeat: no-repeat;
      width: 1000px;
      height: 400px;
    }
    html,body{
      width: 100%;
    }
    .bg{
      margin: 0 auto;
      width:80%;
      height:800px;
    }
    .bg-tl{
      float: left;
      width: 70px;
      height: 60px;
      background: url('pic/1.左上-固定.png') no-repeat;
    }
    .bg-tm {
      float: left;
      width: calc(100% - 200px);
      height:60px;
      background:url('pic/2.中上-可拉长.png') repeat-x;
    }
    .bg-tr{
      float: left;
      width:130px;
      height: 60px;
      background: url('pic/3.右上-固定.png') no-repeat;
    }
    .bg-ml{
      float: left;
      width:70px;
      height: 400px;
      background: url('pic/4.左中-可拉高.png') repeat-y;
    }
    .bg-mm{
      float: left;
      width: calc(100% - 200px);
      height: 400px;
      background: url('pic/5.中间-可无限拉.png');
    }
    .bg-mr{
      float: left;
      width: 130px;
      height: 400px;
      background: url('pic/6.右中-可拉高.png') repeat-y;
    }
    .bg-bl{
      float: left;
      width: 70px;
      height: 40px;
      background: url('pic/7.左下-固定.png') no-repeat;
    }
    .bg-bm{
      float: left;
      width: calc(100% - 200px);
      height: 40px;
      background: url('pic/8中下-可拉长.png') repeat-x;
    }
    .bg-br{
      float: left;
      width: 130px;
      height: 40px;
      background: url('pic/9右下-固定.png') no-repeat;
    }
  </style>
</head>
<body>
  <div class="m"></div>
  <div class="bg">
    <div class="bg-tl"></div>
    <div class="bg-tm"></div>
    <div class="bg-tr"></div>
    <div class="bg-ml"></div>
    <div class="bg-mm"></div>
    <div class="bg-mr"></div>
    <div class="bg-bl"></div>
    <div class="bg-bm"></div>
    <div class="bg-br"></div>
  </div>
</body>
</html>